package query

/*
   @author:zhongyang
   @date:2023/4/5
   @description: 计划查询命令
*/

type GeneratePlanReportQuery struct {
	PlanId string `json:"plan_id"` // 计划ID
}

type GetPlanQuery struct {
	PlanId string `json:"plan_id"` // 计划ID
}

type GetPlanDetailQuery struct {
	PlanId string `json:"plan_id"` // 计划ID
}

type GetPlanListQuery struct {
	Page     int `json:"page" form:"page"`         // 页码
	PageSize int `json:"pageSize" form:"pageSize"` // 每页大小
}

type FindPlanReportQuery struct {
	PlanId string `json:"plan_id"` // 计划ID
}

type GetTaskItemQuery struct {
	// 主键id
	TaskItemId string
}

type GetTaskListQuery struct {
	PlanId   string `json:"plan_id" form:"plan_id"`   // 计划ID
	Page     int    `json:"page" form:"page"`         // 页码
	PageSize int    `json:"pageSize" form:"pageSize"` // 每页大小
}

type FindOneDayQuestionQuery struct {
	PlanId   string `json:"plan_id" form:"plan_id" binding:"required"`     // 计划ID
	TaskDate string `json:"task_date" form:"task_date" binding:"required"` // 待办日期
}

type SearchQuestionQuery struct {
	PlanId  string `json:"plan_id" form:"plan_id" binding:"required"` // 计划ID
	Content string `json:"content"`                                   // 搜索内容
}

type GetOngoingTasksQuery struct {
	// 查询维度 today-今日；week-本周；all-全部
	Scope string `json:"scope" form:"scope" binding:"oneof=today week all"`
}

type IsFinishTaskQuery struct {
	PlanID string `json:"plan_id" form:"plan_id"` // 主键ID
}
